/*
 * driver.h
 *
 *  Created on: 2021年3月13日
 *      Author: root
 */

#ifndef __MYOS__DRIVERS__DRIVER_H_
#define __MYOS__DRIVERS__DRIVER_H_

namespace myos{
	namespace drivers{

		class Driver{

			public:
				Driver();
				~Driver();
				virtual void Activate();
				virtual int Reset();
				virtual void Deactivate();
			};
			class DriverManager{
			private:
				Driver* drivers[265];
				int numDrivers;

			public:
				DriverManager();
				void AddDriver(Driver*);
				void ActiveAll();
			};

	}
}


#endif /* __MYOS__DRIVERS__DRIVER_H_ */
